﻿
<Window x:Class="SkypeSync.SSContacts"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
         xmlns:controls="clr-namespace:Microsoft.Lync.Controls;assembly=Microsoft.Lync.Controls"
        Title="UC Contact Link (beta)" Height="800" Width="1200" Loaded="Window_Loaded_1">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="30*"/>
            <RowDefinition Height="5*"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="35*"/>
            <ColumnDefinition Width="25*"/>
            <ColumnDefinition Width="35*"/>
        </Grid.ColumnDefinitions>
        <StackPanel Grid.Row="0" Grid.Column="0">
            <Image Source="images/logo.png" Width="300" Height="70" HorizontalAlignment="Left" ></Image>
        </StackPanel>
        <StackPanel Grid.Row="1" Grid.Column="2" Orientation="Horizontal">
            <Label Content="Remove Lync Contact" Width="200" Margin="10,0"/>
            <Label Content="Select Lync Groups" Width="200" Margin="10,0"/>         
        </StackPanel>
        <StackPanel Grid.Row="1" Grid.Column="1">
            <Label Content="Click on user to add to Lync" Margin="10,0" />
        </StackPanel>
        <StackPanel Grid.Row="1" Grid.Column="0" Orientation="Horizontal">
            <Label Content="Skype Contacts without Email" Width="200" Margin="10,0"/>
            <Label Content="Select a Skype contact to load"  Width="200" Margin="10,0"/>        
        </StackPanel>
        <StackPanel Grid.Row="2" Grid.Column="2" Orientation="Horizontal">
            <ListBox Name="ContactList_ListBox"  Width="200" Margin="10,10,10,10" />           
            <ListBox Name="GroupList_ListBox" Width="200"  Margin="10,10,10,10" SelectionChanged="GroupList_ListBox_SelectionChanged"/>  
        </StackPanel>
        <StackPanel Grid.Row="2" Grid.Column="1">
            <controls:ContactSearchResultList
                ItemsSource="{Binding Results, ElementName=searchInput, Mode=OneWay}"
                ResultsState="{Binding SearchState, ElementName=searchInput, Mode=OneWay}" Name="ResultList"  SelectionChanged="ResultList_SelectionChanged" />
         
            <controls:ContactSearchInputBox x:Name="searchInput" Visibility="Hidden" />
        </StackPanel>
        <StackPanel Grid.Row="3" Grid.Column="2" Orientation="Horizontal" HorizontalAlignment="Left">
            <Button Content="Remove Selected Lync Contact" Height="23" Name="RemoveContact_button" Margin="10,0" Click="RemoveContact_Button_Click"/>
        </StackPanel>
        <StackPanel Grid.Row="3" Grid.Column="0" Orientation="Horizontal">
            <TextBox Name="SkypeID_txt" TextWrapping="Wrap" Text="Enter Your Skype ID" Height="23" Width="120" Margin="10,0"/>
            <Button Content="Load Skype Contacts" Height="23" Name="LoadSkypeContacts_Button" Width="120" Margin="10,0" Click="LoadSkypeContacts_Button_Click"/>
            <Label Name="SearchStatus_Label" Width="100" Height="23" Margin="10,0"></Label>
            
        </StackPanel>
        <StackPanel Grid.Row="2" Grid.Column="0" Orientation="Horizontal">
            <ListBox Name="LegacySkypeContacts_ListBox" Width="200" Margin="10,10,10,10" SelectionChanged="LegacySkypeContacts_ListBox_SelectionChanged" />
            <ListBox Name="SkypeContacts_ListBox" Width="200" Margin="10,10,10,10" SelectionChanged="SkypeContacts_ListBox_SelectionChanged"/>
        </StackPanel>
    </Grid>
</Window>

